package com.fuzamei.rent.controller;

import com.fuzamei.rent.service.HelloworldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class CousumerController {

//    @Autowired
//    RestTemplate restTemplate;

    @Autowired
    HelloworldService service;

    @GetMapping("ribbon-consumer")
    public String helloConsumer(){
        return service.helloService();
    }
}
